{% extends "base.html" %}
{% load markup %}

{% block title %}Report Results{% endblock %}

{% block primary-content %}
<span class="breadcrumbs"><a href="{% url index %}" title="Home">Home</a> &raquo; <a href="{% url reports %}" title="Reports">Reports</a> &raquo; Archives</span>
{# <h2>Reports{% if query_issue or query_rep %} about {{ query_issue }}{% if query_issue and query_rep %} and {% endif %}{{ query_rep }}{% endif %}{% if query_month or query_year %} from {{ query_month }}{% if query_month and query_year %}, {% endif %}{{ query_year }}{% endif %}</h2> #}
<h2>Reports from {{ query_year }}</h2>
{% for report in reports.object_list %}
<h3 class="report-teaser"><a href="{% url report report.id %}">{{ report }} {% if report.subtitle %} <span class="subtitle">{{ report.subtitle }}</span>{% endif %}</a></h3>
<div class="report-aside">
	<dl class="postmetadata">
		<dt>Issues</dt>
		<dd>{% for issue in report.issues.all %}<a href="{% url issues %}#{{ issue.slug }}">{{ issue }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}</dd>
		<dt>Reps</dt>
		<dd>{% for rep in report.reps.all %}{{ rep }}{% if not forloop.last %}, {% endif %}{% endfor %}</dd>
	</dl>		
</div>
<div class="main">
<small class="date-posted">Posted {{ report.pub_date|date }} by {{ report.get_author }}</small>
	{{ report.synopsis|markdown}}
	<!--<p class="read-more" style="margin-bottom:40px;"><a href="{% url report report.id %}">Continue Reading &raquo;</a></p>		-->
</div>	

{% endfor %}
<div class="pager content-section">
	{% if reports.has_next %}
	<div class="float-left"><a href="?{{ url_params }}&page={{ reports.next_page_number }}">&laquo; Older Results</a></div>
	{% endif %}
	{% if reports.has_previous %}
	<div class="float-right"><a href="?{{ url_params }}&page={{ reports.previous_page_number }}">Newer Results &raquo;</a></div>
	{% endif %}
</div>
{% endblock %}

{% block secondary-content %}
  {% include "snippets/signup_or_info.html" %}
  {% include "news/snippets/report_archives.html" %}
  {% include "snippets/reports_and_news.html" %}
{% endblock %}


